package edu.kjxy.worker0329;

public class worker03 {
	public static void sort(int... data) {
		for (int i = 0; i < data.length - 1; i++) {
			for (int j = 1; j < data.length - i; j++) {
				if(data[j] < data[j - 1]) {
					int tmp = data[j];
					data[j] = data[j - 1];
					data[j - 1] = tmp;
				}
			}
		}
	}
	public static void main(String[] args) {
		int[] a = {2, 4, 6,2 ,3 ,34, 22, 44, 67, 11};
		sort(a);
		for (int i = 0; i < a.length; i++) {
			System.out.print(a[i] + " ");
		}
	}

}
